<?php
namespace App\Admin\Controllers\Api;

use App\Models\Product;
use App\Http\Controllers\Controller;

class ProductsController extends Controller
{
	public function index()
	{
		return Product::ajaxSelect2(request('q'))->paginate(null, ['id', 'title as text']);
	}
}
